<?php

/**
 * 主面板
 * 
 * @author Dean
 *
 */
class mainCtrl extends Ctrl{
	
	public function show(){
		$view = new View();
		
		$msg = getGetStringParam('msg');
		
		$data = array(
				'op_select' => 'main',
		);
		
		if($msg=='success_ads'){
			$ads_kws = $_COOKIE["Ads_kws"];
			$ads_vbc = $_COOKIE["Ads_vbc"];
			
			$data['ads_kws'] = $ads_kws;
			$data['ads_vbc'] = $ads_vbc;
		}elseif ($msg=='success_launch'){
			$launch_kws = $_COOKIE["Launch_kws"];
			$launch_vbc = $_COOKIE["Launch_vbc"];
			
			$data['launch_kws'] = $launch_kws;
			$data['launch_vbc'] = $launch_vbc;
		}
		
		$view->display($data, 'panel.html');
	}
	
}